package com.schedule.task

import org.springframework.scheduling.annotation.Scheduled
import org.springframework.stereotype.Component

@Component
class Task {
    @Scheduled(fixedRate = 1000)
    fun test() {
        println("每秒执行的任务")
    }
}
